Yo Dan Man,
%br
%br
An approval request for
%a{:href => gallery_url(@gallery), :title => @gallery.name}= @gallery.name
has been sent to you. [
%a{:href => gallery_approvals_url(@gallery), :title => "View approvals for #{@gallery.name}"}View Approvals
]
%br
%br
%table{:style => "margin-top: 10px;"}
  - @gallery.photos.each do |photo|
    - if photo.approved_in?(@gallery)
      %tr{:style => "border: 1px solid black"}
        %td.photo{:style => "height: 114px; width: 112px; padding: 5px; margin: 5px; vertical-align: middle; text-align: center;"}
          %table.photo{:style => "float: left; margin: 5px; height: 116px; border: 1px solid #363636; background-color: #111111; margin-top: 10px;"}
            %tr
              %td.photo{:style => "height: 114px; width: 112px; padding: 5px; margin: 5px; vertical-align: middle; text-align: center;"}
                %a.image{:href => photo_url(photo), :style => "text-decoration: none;", :rel => "width:800,height:600", :id => "photo_#{photo.id.to_s}", :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
                  %img.photo_thumb{:src => ActionMailer::Base.default_url_options[:host] + photo.public_filename(:thumb), :style => "border: solid 1px #898989", :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
        %td.appoval_info
          %table.approval_info{:style => "margin-top: 10px;"}
            %tr
              %td.field_title{:style => "padding: 5px"}Photo:
              %td.field{:style => "padding: 5px"}= photo.filename
            %tr
              %td.field_title{:style => "padding: 5px"} Status:
              %td.field{:style => "padding: 5px"}
                - if photo.approved_in?(@gallery)
                  %span.approved{:style => "color:#4aba28"} approved
                - elsif photo.declined_in?(@gallery)
                  %span.declined{:style => "color:#BA4428"} declined
            %tr
              %td.field_title{:style => "padding: 5px"} On:
              %td.field{:style => "padding: 5px"}= photo.approval_in(@gallery).updated_at.strftime("%B %o, %Y at %I:%M %p")
            %tr
              %td.field_title{:style => "padding: 5px"} By:
              %td.field{:style => "padding: 5px"}
                %a{:href => user_url(photo.approval_in(@gallery).user), :title => "See #{photo.approval_in(@gallery).user.login}'s details"}= photo.approval_in(@gallery).user.login
  - @gallery.videos.each do |video|
    - if video.approved_in?(@gallery)
      %tr{:style => "border: 1px solid black"}
        %td.video{:style => "height: 114px; width: 112px; padding: 5px; margin: 5px; vertical-align: middle; text-align: center;"}
          %table.video{:style => "float: left; margin: 5px; height: 116px; border: 1px solid #363636; background-color: #111111;"}
            %tr
              %td.video{:style => "height: 114px; width: 112px; padding: 5px; margin: 5px; vertical-align: middle; text-align: center;"}
                %a.quicktime{:href => video_url(video), :style => "text-decoration: none;", :rel => "width:853,height:496", :id => "video_#{video.id.to_s}", :title => (video.caption ? video.caption : video.filename), :alt => (video.caption ? video.caption : video.filename)}
                  %img.video_thumb{:src => ActionMailer::Base.default_url_options[:host] + video.thumbnail, :style => "border: solid 1px #898989", :title => (video.caption ? video.caption : video.filename), :alt => (video.caption ? video.caption : item.filename)}
        %td.appoval_info
          %table.approval_info{:style => "margin-top: 10px;"}
            %tr
              %td.field_title{:style => "padding: 5px"}Video:
              %td.field{:style => "padding: 5px"}= video.filename
            %tr
              %td.field_title{:style => "padding: 5px"} Status:
              %td.field{:style => "padding: 5px"}
                - if video.approved_in?(@gallery)
                  %span.approved{:style => "color:#4aba28"} approved
                - elsif video.declined_in?(@gallery)
                  %span.declined{:style => "color:#BA4428"} declined
            %tr
              %td.field_title{:style => "padding: 5px"} On:
              %td.field{:style => "padding: 5px"}= video.approval_in(@gallery).updated_at.strftime("%B %o, %Y at %I:%M %p")
            %tr
              %td.field_title{:style => "padding: 5px"} By:
              %td.field{:style => "padding: 5px"}
                %a{:href => user_url(video.approval_in(@gallery).user), :title => "See #{video.approval_in(@gallery).user.login}'s details"}= video.approval_in(@gallery).user.login
Have fun,
%br
%br
Your Website.